/*
** simple_test.c for newin-malloc in /home/newin/malloc/newin-malloc
**
** Made by 
** Login  <@epitech.eu>
**
** Started on  Sun Feb 03 02:07:01 2013 
** Last update Wed Feb 06 16:07:28 2013 vincent leroy
*/

#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <unistd.h>
#include <string.h>
#include "malloc.h"

int main()
{
    int *pt = NULL;
    for (int i = 0; i < 10000; ++i) {
        pt = realloc(pt, i * sizeof(int));
        show_alloc_mem();
        for (int j = 0; j < i; ++j) {
            pt[j] = i;
#if 0
            put("pt[");
            my_putnbr(j);
            put("] = ");
            my_putnbr(pt[j]);
            put("\n");
#endif
        }
    }

    return 0;
}
